Hide Window
AutomatR.Windows.Activities.HideWindow
The "Hide Window" activity in AutomatR for Windows UI Automation hides a specified window identified by its process name, process title, or display title. This activity is useful for minimizing or hiding unwanted windows during automation workflows.
Properties
Name | Description |
---|---|
Input | |
Process Name | Specifies the name of the process whose window needs to be hidden. Provide the exact process name for identification. If not provided, use either "Process Title" or "Display Title." |
Process Title | Specifies the title of the process window to be hidden. Use this property if the process window can be identified by its title. If not provided, use either "Process Name" or "Display Title." |
Display Title | Specifies the display title of the window to be hidden. This can be an alternative title used for window identification. If not provided, use either "Process Name" or "Process Title." |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before starting the activity. This can be useful for handling synchronization issues. Default is 0 seconds. |
How to use:
- Drag and drop the "Hide Window" activity onto the workflow.
- Configure the properties by specifying the process name, process title, or display title of the window to be hidden.
- Optionally, set the entry delay to allow time before the window is hidden.
- Execute the workflow to hide the specified window.
Example: Consider an example where the "Hide Window" activity is used to hide a window with the process name "notepad.exe":
Hide Window:
Display Name: "Hide Notepad Window"
Process Name: "notepad.exe"
Entry Delay: 1
In this example, the activity hides the window associated with the "notepad.exe" process after a delay of 1 second.